export default [
  {
    path: "/account-manage",
    name: "AccountManage",
    component: () => import("@/views/account-manage/index.vue"),
    meta: {
      title: "后台账号管理",
      showLink: true,
      roles: ['admin:account:view']
    }
  },
  {
    path: "/role-manage",
    name: "RoleManage",
    component: () => import("@/views/role-manage/index.vue"),
    meta: {
      title: "角色管理",
      showLink: true,
      roles: ['role:view']
    }
  },
  {
    path: "/user-manage",
    name: "UserManage",
    component: () => import("@/views/user-manage/index.vue"),
    meta: {
      title: "用户管理",
      showLink: true,
      roles: ['user:view']
    }
  },
  {
    path: "/question-manage",
    name: "QuestionManage",
    component: () => import("@/views/question-manage/index.vue"),
    meta: {
      title: "试题管理",
      showLink: true,
      roles: ['question:view']
    }
  },
  {
    path: "/paper-manage",
    name: "PaperManage",
    component: () => import("@/views/paper-manage/index.vue"),
    meta: {
      title: "试卷管理",
      showLink: true,
      roles: ['exam:paper:view']
    }
  },
  {
    path: "/frontend-manage",
    name: "FrontendManage",
    component: () => import("@/views/frontend-manage/index.vue"),
    meta: {
      title: "前端产品管理",
      showLink: true,
      roles: ['front:product:view']
    }
  },
  {
    path: "/score-manage",
    name: "ScoreManage",
    component: () => import("@/views/score-manage/index.vue"),
    meta: {
      title: "成绩管理",
      showLink: true,
      roles: ['score:view']
    },
  },
  {
    path: "/product-manage",
    name: "ProductManage",
    component: () => import("@/views/product-manage/index.vue"),
    meta: {
      title: "商品配置",
      showLink: true,
      roles: ['product:config:view']
    },
  },
  {
    path: "/order-manage",
    name: "OrderManage",
    component: () => import("@/views/order-manage/index.vue"),
    meta: {
      title: "订单管理",
      showLink: true,
      roles: ['order:view']
    },
  },
  {
    path: "/banner-manage",
    name: "BannerManage",
    component: () => import("@/views/banner-manage/index.vue"),
    meta: {
      title: "轮播图管理",
      showLink: true,
      roles: ['banner:view']
    },
  },
] satisfies Array<RouteConfigsTable>